﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace Ataric.SuppressWP.Utilities
{
    public class CommonHelper
    {
        public static string LoadResource(string ns,string filename)
        {
            
            string result = "";
            try
            {
                Assembly _assembly = Assembly.GetExecutingAssembly();
                using (StreamReader reader = new StreamReader(_assembly.GetManifestResourceStream(ns +"."+ filename)))
                {
                    result =  reader.ReadToEnd();;
                }
            }
            catch
            {
                //
            }
            return result;
		
        }
    }
}
